﻿using System;
using System.Collections.Generic;
using System.Collections;

using InfoGenerateSystem.Domain;

namespace InfoGenerateSystem.Service.Interfaces
{
    /// <summary>
    /// 根据装载的标签生成Excel并写入数据库服务接口
    /// 
    /// 创建人:     王昊
    /// 创建时间:   2009-05-04
    /// 
    /// </summary>
    public interface IExcelToDatabase
    {
        string Directory { get; set; }

        string ConfigFilePath { get; set; }

        Int32 ThreadCount { get; }

        Hashtable ExcelProcedureParams { get; set; }

        void GoExportExcel();

        void DeleteBeforeRecords(DateTime time);

        IList<TblbLabel> GetLabelList();

        IList<TblbLabel> GetLabelList(String directory, String configFilePath);

        IList<TblbLabel> ReloadLabelList();

        TblbLabel GetLabelByID(Int64 labelID);

        ExcelExportConfig GetExcelExportConfig();

        void SaveExcelExportConfig(ExcelExportConfig eec, IList<TblbLabel> labelList);

        IList<ReportPeriod> GetReportPeriodList(Int32 periodCount);
    }
}
